package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("hello")
    public String hello(){
        return "Hello World";
    }
    @RequestMapping("student")
    public Student getStudent(){
        Student student = new Student();
        student.setName("Jack");
        return student;
    }
}
